package zhou.contest07;

public class Q2 {

	String businessMan;
	String goods;
	String shop;
	String customer;
	String thing;
	
	public String getBusinessMan() {
		return businessMan;
	}

	public void setBusinessMan(String businessMan) {
		this.businessMan = businessMan;
	}

	public String getGoods() {
		return goods;
	}

	public void setGoods(String goods) {
		this.goods = goods;
	}

	public String getShop() {
		return shop;
	}

	public void setShop(String shop) {
		this.shop = shop;
	}

	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer = customer;
	}

	public String getThing() {
		return thing;
	}

	public void setThing(String thing) {
		this.thing = thing;
	}

	String canAdd(String man,String g,String s){
		this.businessMan=man;
		this.goods=g;
		this.shop=s;
		return businessMan+"可以添加"+goods+"到自己的"+s+"，";
		
	}

	String canGo(String c,String s){
		this.customer=c;		
		this.shop=s;
		return customer+"可以到"+shop;
		
	}
	
	String buy(String t){
		this.thing=t;
		return "买"+thing+"。";
		
	}
	

}
